package com.mrs.gauss.model.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by hecq on 2024-12-24.
 *
 * @author hecq
 * @version 0.0.1
 * @date 2024-12-24
 * @since 0.0.1
 */

public class MrsFiles implements Serializable {
    private static final long serialVersionUID = -6381761856892181195L;
    @NotBlank
    @Length(max = 200)

    /**
     * id
     */
    private Long id;


    /**
     * 文件名
     */
    private String fileName;

    /**
     * 文件描述
     */
    private String fileDesc;

    /**
     * 上传时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileDesc() {
        return fileDesc;
    }

    public void setFileDesc(String fileDesc) {
        this.fileDesc = fileDesc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "MrsUser{" +
                "id=" + id + '\'' +
                ", fileName='" + fileName + '\'' +
                ", fileDesc='" + fileDesc + '\'' +
                ", createTime='" + createTime + '\'' +
                '}';
    }
}
